package org.jsoncrypto.connect;

import org.json.JSONException;
import org.json.JSONObject;

public class IDToken extends JSONObject {

  public IDToken(String idTokenStr) throws JSONException {
    super(idTokenStr);
  }
  
  public IDToken(String iss, String user_id, String aud, long exp) throws JSONException {
    put("iss", iss);
    put("user_id", user_id);
    put("aud", aud);
    put("exp", exp);
  }

  public void setIat(long iat) throws JSONException {
    put("iat", iat);
  }

  public void setAcr(String acr) throws JSONException {
    put("acr", acr);
  }

  public void setNonce(String nonce) throws JSONException {
    put("nonce", nonce);
  }

  public void setAuth_time(long auth_time) throws JSONException {
    put("auth_time", auth_time);
  }

  public void setAt_hash(String at_hash) throws JSONException {
    put("at_hash", at_hash);
  }

  public void setC_hash(String c_hash) throws JSONException {
    put("c_hash", c_hash);
  }

}
